cc_system_library(
    name = 'libc',
    lib = 'm',
    package_name = 'libc6'
)
    
bundle(
  name = 'a',
  srcs = [
    'a.txt',
    'b.txt',
    'testdir/e.txt',
  ],
  flatten = True,
  prefix = '123'
)

bundle(
    name = 'c',
    srcs = [
      'c.txt',
    ],
    deps = [
      ':a',
      ':a_binary',
    ]
)

bundle(
    name = 'd',
    deps = [
      ':c',
    ],
    prefix = '123',
)

bundle(
    name = 'bin_a',
    deps = [
      ':a_binary',
    ],
    prefix = 'bin'
)

zip_pkg(
    name = 'zip',
    deps = [
      ':c',
      ':d',
      #':bin_a',
    ]
)

tarbz_pkg(
    name = 'tarbz',
    deps = [
      ':c',
      ':d',
    ]
)

targz_pkg(
    name = 'targz',
    deps = [
      ':c',
      ':d',
    ]
)

cc_binary(
  name = 'a_binary',
  srcs = ['a.cc'],
  deps = [':libc']
)

deb_pkg(
    name = 'debpkg',
    version = '1.0',
    deps = [
      ':c',
      ':d',
    ],
    maintainer = 'Austin Schuh <austin.linux@gmail.com>',
    description = 'Test package.'
)
